package cn.newtouch.fallBack;

import cn.newtouch.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBack {

    public static  User UserFallBack(@PathVariable("id") Long id,Throwable e) {
        e.printStackTrace();
        return new User(-1L, "触发熔断", "已经触发熔断，稍后重试！！！");
    }
}
